package com.li.eduservice.controller;

import com.li.util.R;
import org.springframework.web.bind.annotation.*;



@RestController
@RequestMapping("/eduservice/user")
//@CrossOrigin//解决跨域
public class EduLoginController {

    //login
    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }

    //info
    @GetMapping("info")
    public R info(){
        return R.ok().data("name","admin").data("avatar","https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F201808%2F21%2F20180821115630_5ehCJ.thumb.400_0.gif&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1650638655&t=397b33e0bb973a2924c44aad6442f07a");
    }

}
